package com.nf.handler.columns;

import com.nf.MiniColumnHandler;

import java.sql.ResultSet;
import java.sql.SQLException;

public class MiniIntegerColumnHandler implements MiniColumnHandler {
    @Override
    public boolean metach(Class<?> propType) {
        return propType.equals(Integer.class)|| propType.equals(Integer.TYPE);
    }

    @Override
    public Object apply(ResultSet rs, int pos) throws SQLException {
        return rs.getInt(pos);
    }
}
